<template>
<div class="paging-box">
  <el-pagination
  background
  layout="prev, pager, next"
  :total="pageTotal*10"
  @current-change="currentChange">
</el-pagination>
</div>
</template>

<script>
export default{
  name: 'paging',
  props: {
    pageTotal: {
      type: Number
    }
  },
  methods: {
    currentChange(cpage) {
      //当前多少页
      this.$emit('currentchange', cpage)
    }
  }
}
</script>

<style scoped>
.paging-box{
  padding: 20px 0;
}

</style>
